<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>图像切换</title>
</head>
<body>
<center>
	<h1>图像切换</h1><hr>
	<h5>移到到图片上切换......</h5>
	<form name="form1">
		<a href="" name="link1" onmouseover="imgOver();" onmouseout="imgOut();"><img name="img1" src="1.jpg"></a>
	</form>
	<script type="text/javascript">
		function imgOver() {
			document.form1.img1.src="2.jpg";
		}
		function imgOut() {
			document.form1.img1.src="1.jpg";
		}
	</script>
</center>
</body>
</html>